package org.vectrics.recruiter.job;

import java.io.Serializable;

import org.vectrics.common.db.CodedObject;
import org.vectrics.common.db.RecordObject;
import org.vectrics.common.db.Voidable;

/**
 * Clase encargada de representar Term de un Job
 * 
 * @author pgoette
 */
public class JobTerm implements RecordObject, CodedObject, Serializable, Voidable {

    private static final long serialVersionUID = 2854370099585356019L;

    /** Codigo de JobTerm */
    private String code;

    /** Descripcion de JobTerm */
    private String description;

    /** id de JobTerm */
    private Long id;

    /** Variable que indica si es un empleado o no. */
    private boolean isEmployee = false;

    private boolean voided = false;

    /**
     * @return the code
     */
    public String getCode() {
        return this.code;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return this.description;
    }

    /**
     * @return the id
     */
    public Long getId() {
        return this.id;
    }

    /**
     * @return the isEmployee
     */
    public boolean getIsEmployee() {
        return this.isEmployee;
    }

    public boolean getVoided() {
        return this.voided;
    }

    /**
     * @return the voided
     */
    public boolean isVoided() {
        return this.voided;
    }

    /**
     * @param code
     *            the code to set
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * @param description
     *            the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @param isEmployee
     *            the isEmployee to set
     */
    public void setIsEmployee(boolean isEmployee) {
        this.isEmployee = isEmployee;
    }

    /**
     * @param voided
     *            the voided to set
     */
    public void setVoided(boolean voided) {
        this.voided = voided;
    }
}
